# Compiler  
CC = gcc  
  
# Compiler flags  
CFLAGS = -Wall -I../include  
  
# Source file  
SRC = log.c
  
# Object file  
OBJ = $(SRC:.c=.o)  
  
# Output directory  
BUILD_DIR = ../BUILD
  
# Rule to create object file  
$(OBJ): $(SRC)  
	$(CC) $(CFLAGS) -c $< -o $@  
  
# Rule to copy object file to build directory  
# install: 
	mv $(OBJ) $(BUILD_DIR)  
  
# Clean rule  
clean:  
	rm -f $(BUILD_DIR)/$(OBJ)